// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2024-04-24 10:28:09
// 生成路径: internal/app/business/service/user_agents.go
// 生成人：周志雄
// desc:代理商用户
// company:云南奇讯科技有限公司
// ==========================================================================

package service

import (
	"context"
	"github.com/tiger1103/gfast/v3/api/v1/business"
	"github.com/tiger1103/gfast/v3/internal/app/business/model"
)

type IUserAgents interface {
	List(ctx context.Context, req *business.UserAgentsSearchReq) (res *business.UserAgentsSearchRes, err error)
	GetById(ctx context.Context, Id int) (res *model.UserAgentsInfoResVo, err error)
	Add(ctx context.Context, req *business.UserAgentsAddReq) (err error)
	Edit(ctx context.Context, req *business.UserAgentsEditReq) (err error)
	Delete(ctx context.Context, Id []int) (err error)
}

var localUserAgents IUserAgents

func UserAgents() IUserAgents {
	if localUserAgents == nil {
		panic("implement not found for interface IUserAgents, forgot register?")
	}
	return localUserAgents
}

func RegisterUserAgents(i IUserAgents) {
	localUserAgents = i
}
